package org.devops 

//判断部署环境
def ch_env(env_name){
    echo"部署的环境是${env_name}"

    if("${env_name}"=="test"){
        def remote = [:]
        remote.name = "${env_name}"
        remote.host = '172.16.1.116'
        remote.user = 'root'
        remote.password = '12345678'
        remote.allowAnyHosts = true


    }else{
        def remote = [:]
        remote.name = "${env_name}"
        remote.host = '172.16.1.115'
        remote.user = 'root'
        remote.password = '12345678'
        remote.allowAnyHosts = true
    }
}




